package com.yhos.platform.oopston.core.convert;

import com.yhos.platform.oopston.core.utils.DateUtils;
import org.modelmapper.AbstractConverter;

import java.util.Date;

public class Date2StringConverter extends AbstractConverter<Date, String> {

    @Override
    protected String convert(Date source) {
        return source == null ? "" : DateUtils.dateToString(source);
    }

}
